import { notFound } from "next/navigation"; import { getToolRecord } from "@/lib/admin/tools"; import { ToolEditor } from "@/components/admin/tool-editor"; export default async function EditTool({ params }: { params: Promise<{ id: string }> }) { const r = await getToolRecord((await params).id); if (!r) notFound(); return ; }